package controller;

import model.BatchPosCodeCorpsModel;
import org.eclipse.swt.events.SelectionListener;
import org.eclipse.swt.widgets.Listener;

import business.ViewLogger;
import controller.listeners.batchPosCodeCorps.*;

import view.BatchPosCodeCorpsView;
import view.ViewUtils;


public class BatchPosCodeCorpsController {

	private BatchPosCodeCorpsView _view;
	private BatchPosCodeCorpsModel _model;
	
	public BatchPosCodeCorpsController(BatchPosCodeCorpsView view) {
		_view = view;
		_model = new BatchPosCodeCorpsModel();
	}
	


	

	public void iniView() {
		
	}


	public Listener getCorpFilterTxtFocusOutListener() {
		return new CorpFilterTxtFocusOutListener(_view, _model);
	}


	public Listener getTxtCorpKeyDownListener() {
		return new TxtCorpKeyDownListener(_view, _model);
	}

	public Listener getFilterKeyDownListener() {
		return new FilterKeyDownListener(_view, _model);
	}

	/**
	 * @return controlador de seleccion en tabla de corps de cache filtrados
	 */
	public Listener getCacheCodeCorpsSelectionListener() {
		return new CacheCodeCorpsSelectionListener(_view, _model);
	}

	public Listener getCacheCodeCorpsKeyDownListener() {
		return new CacheCodeCorpsKeyDownListener(_view, _model);
	}

	public Listener getCandidateCentersSelectionListener() {
		return new CandidateCentersSelectionListener(_view, _model);
	}

	public Listener getCandidateCentersKeyDownListener() {
		return new CandidateCentersKeyDownListener(_view, _model);
	}

	public Listener getCandidateCentersCustomSelectionListener() {
		return new CandidateCentersCustomSelectionListener(_view, _model);
	}

	public Listener getCandidateCentersCustomKeyDownListener() {
		return new CandidateCentersCustomKeyDownListener(_view, _model);
	}


	

}
